home *** CD-ROM | disk | FTP | other *** search
- Path: crayor.dialup.fu-berlin.DE!not-for-mail
- From: crayor@zedat.fu-berlin.de (crayor)
- Newsgroups: comp.sys.amiga.programmer
- Subject: varying-length argument list
- Date: 8 Mar 1996 02:38:43 GMT
- Organization: Freie Universitaet Berlin
- Message-ID: <549.6641T218T2207@zedat.fu-berlin.de>
- NNTP-Posting-Host: crayor.dialup.fu-berlin.de (160.45.226.201)
- X-Access: 16 17 19
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
- Does anyone know how to code the following function in C?
-
- my_sprintf(...)
- {
- //should do exactly what sprintf() does and call
- AEPutStr(tmp);
- //afterwards.
- }
-
- Is there any way to code it in C?
- Using va_arg() would mean that I have to recode sprintf(), right?
-
- So what I need to know is how to pass the complete parameter list
- to sprintf() unmodified.
-
- How does sprintf() solve the problem?
-
- Crayor
- --
- AMiGA4000/CyberStorm060 32MB Fast (54MB/s), CyberSCSI/Barracuda 2GB (7MB/s)
- Scandoubler/MFCII, A2065 Ethernet, CyberVision 4MB, BSC ISDN MasterII
-
-